<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script charset="utf-8" src="{hd:$smarty.const.__ROOT__}Blog/Admin/Org/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="{hd:$smarty.const.__ROOT__}Blog/Admin/Org/kindeditor/lang/zh_CN.js"></script>
	<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
	</script>
</head>
<body>
	<form action="" method="post" enctype="multipart/form-data">
		<input type="hidden" value="{hd:$blog.bid}" name="bid">
		<table border="1" width="100%" height="100%" cellpadding="0" cellspacing="0">
			<tr>
				<th>标题</th>
				<td><input type="text" name="title" value="{hd:$blog.title}"></td>
			</tr>
			<tr>
				<th>栏目</th>
				<td>
					<select name="cid" id="">
					{hd:section loop=$cate name=d}
						<option value="{hd:$cate[d].cid}" {hd:$cate[d].s}>{hd:$cate[d].catname}</option>
					{hd:/section}
					</select>
				</td>
			</tr>
			<tr>
				<th>缩略图</th>
				<td>
				<input type="hidden" name="thumb" value="{hd:$blog.thumb}">
				{hd:if $blog.thumb}
					<img src="{hd:$smarty.const.__ROOT__}{hd:$blog.thumb}" alt="" width="50px" height="30px">
				{hd:/if}
				<input type="file" name="thumb">
				</td>
			</tr>
			<tr>
				<th>正文</th>
				<td>
					<textarea id="editor_id" name="content" style="width:700px;height:300px;">
						{hd:$blog.content}
					</textarea>
				</td>
			</tr>
			<tr>
				<th>点击数</th>
				<td><input type="text" name="click" value="{hd:$blog.click}"></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="提交更新"></td>
			</tr>
		</table>
	</form>
</body>
</html>